using System;

namespace WindowsAPI.Service
{
    [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
    sealed class UsedInAttribute : Attribute
    {
        public string Usage { get; private set; }

        public string Aditional { get; set; }

        public UsedInAttribute(string Usage) { this.Usage = Usage; }

        public UsedInAttribute(Type type) : this(type.FullName) { }

        public override string ToString() { return Usage + (Aditional ?? ""); }
    }
}